import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};

/** 分页查询个人用户 */
export const companyseluserbypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi(`/secbackend/user/seluserbypage`), { data });
};

/** 新增个人用户 */
export const companyinsertuser = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/user/insertuser"), { data });
};


/** 删除个人用户 */
export const companydeluser = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/user/deluser/${userid}`));
};

/** 修改个人用户 */
export const companyupdateuser = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/user/updateuser"), { data });
};




